function start()
	print("进入主界面")
	self:LuaBindClick("Create",Click_Create)

end

function update()
	
end

function ondestroy()
 
end

function  Click_Create( ... )
	print("创建角色")
	local name = self.myobj:GetInputValue("input_name")
	LuaNetHelper.CreateRole(name,OnRecvCreate,OnRecvCreateError)
	-- body
end

function OnRecvCreate( netdata )
	print(netdata)
	UserData.PlayerInfo = decode(netdata).data;

	CS.LuaGameTool.OpenStateUI("main",1)
	-- body
end

function OnRecvCreateError( ... )
	-- body
end
